package com.data.mining.project;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

public class WikipediaReader
{
	public static void main( String[ ] args)
	{
		try
		{
			URL url = new URL( "http://en.wikipedia.org/wiki/Linked_list");

			BufferedReader in = new BufferedReader( new InputStreamReader( url.openStream( )));
			String str;
			while ( ( str = in.readLine( )) != null)
			{
				System.out.println( str);
			}
			in.close( );
		} catch ( MalformedURLException e)
		{
		} catch ( IOException e)
		{
		}
	}
}
